package org.python.util;

import java.net.*;
import org.python.core.*;

public class PythonLibLoader extends AbstractLibLoader {
	public void load(URL remoteLib) {
		try {
			String libLocation = retrieveLib(remoteLib);
			Py.getSystemState().path.append(new PyString(libLocation));
		} catch (Exception e) {
			Py.writeError("PythonLibLoader", "unable to load library <" + remoteLib.toString() + ">");
		}
	}
}
